package com.mtable.base;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface BaseService<T> {
	
	public List<T> query(HttpServletRequest request,HttpServletResponse response);

	public void delete(T t);

	public List<T> findAll();

	public T findById(Integer id);

	public List<T> findByProperty(String propertyName, Object value);

	public T merge(T t);

	public void save(T t);
	
	public String generateJsonArray(List<T> list);
}
